n = int(input("请输入要计算的数字个数"))
sum = 0
for i in range(n):
    num = int(input("请输入数字："))
    sum += num
print("这{}个整数的平均值为{}".format(n, sum/n))
